<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="for" uri="http://www.springframework.org/tags/form" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <link href="${pageContext.request.contextPath}/css/layout.css" rel="stylesheet" type="text/css"/>
    <link href="${pageContext.request.contextPath}/css/add.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.x.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/cascadingMenu.js"></script>

</head>
<body>
<div class="place"><span>位置：</span>
    <ul class="placeul">
        <li><a href="${pageContext.request.contextPath}/backend/order/index" target="center">订单列表</a></li>
        <li><a href="#">修改订单</a></li>
    </ul>
</div>
<div class="formbody">
    <div class="usual">
        <div class="tabson">

            <form:form action="update" method="post" id="addgoodForm" enctype="multipart/form-data"
                       modelAttribute="order">
                <form:hidden path="status" value="${order.id}"/>
                <ul class="forminfo">
                    <li>
                        <label>订单状态<b>*</b></label>
                        <select name="status">
                            <c:forEach items="${order.statusList}" var="status">
                                <c:choose>
                                    <c:when test="${status.key==order.status}">
                                        <option value="${status.key}" selected>${status.value}</option>
                                    </c:when>
                                    <c:otherwise>
                                        <option value="${status.key}">${status.value}</option>
                                    </c:otherwise>
                                </c:choose>
                            </c:forEach>
                        </select>
                    </li>
                    <li><label>&nbsp;</label>
                        <input type="submit" class="btn" id="btnPublish" value="提交"/>
                    </li>
                </ul>
            </form:form>
        </div>
    </div>
</div>
</body>
</html>